package com.vkserver.services.utils;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 *@author roman.prudkogliad@gmail.com
 */
@XmlRootElement
public class Question implements Serializable{

    private static final long serialVersionUID = 1L;
    private long questionId;
    private long userId;
    private String text;


    public Question(){
    }

    public Question(long userId, String text){
        this.userId = userId;
        this.text = text;
    }
    @XmlElement( name = "userId")
    public long getUserId(){
        return userId;
    }

    public void setUserId(long userId){
        this.userId = userId;
    }
    @XmlElement(name = "text")
    public String getText(){
        return text;
    }

    public void setText(String text){
        this.text = text;
    }

    public void setQuestionId(long questionId){
        this.questionId = questionId;
    }
    @XmlElement(name = "questionId")
    public long getQuestionId(){
        return questionId;
    }

    public String toString(){
        return "questionId="+questionId + " userId=" + userId + " text=" + text;
    }
}
